package com_.dxy_test_.zookeeper_;

import org.I0Itec.zkclient.ZkClient;

/**
 * @Description
 * @Author dangxianyue
 * @Date 2022/11/8 12:43
 */
public class ZkConfig {

    public static final String ZK_ADDR = "172.25.20.87:2181";

    public static final String CONFIG_PATH = "/zkConfig";

    public static final String SERVERS_PATH = "/servers";

    public final static int SESSION_TIMEOUT = 20000;

    public static ZkClient zkClient;

    static {

        initZkClient();
    }

    private static void initZkClient() {
        zkClient = new ZkClient(ZK_ADDR);
    }
}
